function backup_data(){
    /**
     * Created by Jay on 2016/7/19.
     */
    //dataBaseController/backupDatabase
   sessionStorage.setItem("this_page_click_num","1");
    $("body").off();
    $("body").on("click",".del_backup",function(){
        delete_tips({
            url:"dataBaseController/delBackupInfo",
            data:{backupId:$(this).attr("data-id")},
            method:"get",
            alert:"删除成功",
            alert_error:"操作错误",
            content:"确认删除？"
        })

    })
    $("body").on("click",".backup_d",function(){
        $.ajax({
            url:"dataBaseController/backupDatabase",
            method:"get"
        })
        .done(function(data){
            //console.log(data);
            if(data.status==200){
                mccmsa.hashChange();
                layer.alert("成功备份");
            }else{
                layer.alert(data.message);
            }
        })
    })
    $.ajax({
        url:"dataBaseController/getAllBackupInfo",
        method:"get",
        data:{pageSize:10,pageNo:1}
    })
    .done(function(data){
        if(data.result.length>"1"){
            set_seqsum(
                {
                    pageNo:data.result.pageNo,
                    pageSize:data.result.pageSize
                }
            );
            create_page({
                url:"dataBaseController/getAllBackupInfo",
                method:"get",
                data:data,
                temp:"getColumnTableData_check_backup",
                contain:"#ColumnTableData_backup",
                prePageSize:data.result.pageSize,
                prepageNo:data.result.pageNo
            })//生成分页
        }
        mccmsa.getHtmlFromLocalTemplate({   //将数据打包到模版丢进容器
            templateId: "getColumnTableData_check_backup",
            container: $("#ColumnTableData_backup"),
            data: data,
            callback: function () {
            }
        })
    })
    .fail(function (data) {
            cosole.log(data);
    })
}
